﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:PersianCalendarControl="clr-namespace:PersianCalendarControl" mc:Ignorable="d"
	x:Class="PersianCalendarControl.ComposedCalendarViewControl"
	d:DesignWidth="640" Height="180" Width="185">

	<Grid x:Name="LayoutRoot" Margin="0" Height="180" Width="185">
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="25"/>
			<ColumnDefinition Width="*"/>
			<ColumnDefinition Width="25"/>
		</Grid.ColumnDefinitions>
		<Grid.RowDefinitions>
			<RowDefinition Height="25"/>			
			<RowDefinition/>
		</Grid.RowDefinitions>
		<Rectangle Grid.ColumnSpan="3" Grid.RowSpan="2" Stroke="#FF434343">
			<Rectangle.Fill>
				<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
					<GradientStop Color="#FFB1B1B1" Offset="0"/>
					<GradientStop Color="#FFEFEFEF" Offset="0.985"/>
					<GradientStop Color="#FFC6C6C6" Offset="0.544"/>
				</LinearGradientBrush>
			</Rectangle.Fill>
		</Rectangle>
		<Rectangle Grid.ColumnSpan="3">
			<Rectangle.Fill>
				<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
					<GradientStop Color="#FFB6B6B6" Offset="0"/>
					<GradientStop Color="#FF565656" Offset="0.985"/>
					<GradientStop Color="#FF393939" Offset="0.544"/>
					<GradientStop Color="#FF272727" Offset="0.544"/>
				</LinearGradientBrush>
			</Rectangle.Fill>
		</Rectangle>
		<Grid Grid.Row="2" Grid.ColumnSpan="3">
			<Grid x:Name="MonthViewGrid" Width="175" RenderTransformOrigin="0.5,0.5">
				<Grid.RenderTransform>
					<CompositeTransform/>
				</Grid.RenderTransform>
				<Grid.ColumnDefinitions>
					<ColumnDefinition Width="25"/>
					<ColumnDefinition Width="25"/>
					<ColumnDefinition Width="25"/>
					<ColumnDefinition Width="25"/>
					<ColumnDefinition Width="25"/>
					<ColumnDefinition Width="25"/>
					<ColumnDefinition Width="25"/>
				</Grid.ColumnDefinitions>
				<Grid.RowDefinitions>
					<RowDefinition Height="25"/>
					<RowDefinition Height="20"/>
					<RowDefinition Height="20"/>
					<RowDefinition Height="20"/>
					<RowDefinition Height="20"/>
					<RowDefinition Height="20"/>
					<RowDefinition Height="20"/>
				</Grid.RowDefinitions>
                <PersianCalendarControl:CalendarItemLabelButton  Margin="1" Grid.Row="1" CurrentCalendarControlType="DayLabel" />
                <PersianCalendarControl:CalendarItemLabelButton  Margin="1" Grid.Row="1" Grid.Column="1" CurrentCalendarControlType="DayLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton  Margin="1" Grid.Row="1" Grid.Column="2" CurrentCalendarControlType="DayLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton  Margin="1" Grid.Row="1" Grid.Column="3" CurrentCalendarControlType="DayLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton  Margin="1" Grid.Row="1" Grid.Column="4" CurrentCalendarControlType="DayLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton  Margin="1" Grid.Row="1" Grid.Column="5" CurrentCalendarControlType="DayLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton  Margin="1" Grid.Row="1" Grid.Column="6" CurrentCalendarControlType="DayLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton  Margin="1" Grid.Row="2" Grid.Column="6" CurrentCalendarControlType="DayLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton  Margin="1" Grid.Row="2" Grid.Column="5" CurrentCalendarControlType="DayLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton  Margin="1" Grid.Row="2" Grid.Column="4" CurrentCalendarControlType="DayLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton  Margin="1" Grid.Row="2" Grid.Column="3" CurrentCalendarControlType="DayLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton  Margin="1" Grid.Row="2" Grid.Column="2" CurrentCalendarControlType="DayLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton  Margin="1" Grid.Row="2" Grid.Column="1" CurrentCalendarControlType="DayLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton  Margin="1" Grid.Row="2" CurrentCalendarControlType="DayLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton  Margin="1" Grid.Row="3" CurrentCalendarControlType="DayLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton  Margin="1" Grid.Row="3" Grid.Column="1" CurrentCalendarControlType="DayLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton  Margin="1" Grid.Row="3" Grid.Column="2" CurrentCalendarControlType="DayLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton  Margin="1" Grid.Row="3" Grid.Column="3" CurrentCalendarControlType="DayLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton  Margin="1" Grid.Row="3" Grid.Column="4" CurrentCalendarControlType="DayLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton  Margin="1" Grid.Row="3" Grid.Column="5" CurrentCalendarControlType="DayLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton  Margin="1" Grid.Row="3" Grid.Column="6" CurrentCalendarControlType="DayLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton  Margin="1" Grid.Row="4" Grid.Column="6" CurrentCalendarControlType="DayLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton  Margin="1" Grid.Row="4" Grid.Column="5" CurrentCalendarControlType="DayLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton  Margin="1" Grid.Row="4" Grid.Column="4" CurrentCalendarControlType="DayLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton  Margin="1" Grid.Row="4" Grid.Column="3" CurrentCalendarControlType="DayLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton  Margin="1" Grid.Row="4" Grid.Column="2" CurrentCalendarControlType="DayLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton  Margin="1" Grid.Row="4" Grid.Column="1" CurrentCalendarControlType="DayLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton  Margin="1" Grid.Row="4" CurrentCalendarControlType="DayLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton  Margin="1" Grid.Row="5" CurrentCalendarControlType="DayLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton   Margin="1" Grid.Row="5" Grid.Column="1" CurrentCalendarControlType="DayLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton   Margin="1" Grid.Row="5" Grid.Column="2" CurrentCalendarControlType="DayLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton   Margin="1" Grid.Row="5" Grid.Column="3" CurrentCalendarControlType="DayLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton   Margin="1" Grid.Row="5" Grid.Column="4" CurrentCalendarControlType="DayLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton   Margin="1" Grid.Row="5" Grid.Column="5" CurrentCalendarControlType="DayLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton   Margin="1" Grid.Row="5" Grid.Column="6" CurrentCalendarControlType="DayLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton   Margin="1" Grid.Row="6" Grid.Column="6" CurrentCalendarControlType="DayLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton   Margin="1" Grid.Row="6" Grid.Column="5" CurrentCalendarControlType="DayLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton   Margin="1" Grid.Row="6" Grid.Column="4" CurrentCalendarControlType="DayLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton   Margin="1" Grid.Row="6" Grid.Column="3" CurrentCalendarControlType="DayLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton   Margin="1" Grid.Row="6" Grid.Column="2" CurrentCalendarControlType="DayLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton   Margin="1" Grid.Row="6" Grid.Column="1" CurrentCalendarControlType="DayLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton   Margin="1" Grid.Row="6" CurrentCalendarControlType="DayLabel"/>
                <Rectangle Grid.ColumnSpan="7" Margin="-4,0">
                	<Rectangle.Fill>
                		<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                			<GradientStop Color="#FFCACACA" Offset="0"/>
                			<GradientStop Color="White" Offset="1"/>
                			<GradientStop Color="#FFAFAFAF" Offset="0.507"/>
                			<GradientStop Color="#FF999999" Offset="0.514"/>
                		</LinearGradientBrush>
                	</Rectangle.Fill>
                </Rectangle>
                <TextBlock Margin="0" TextWrapping="Wrap" Text="ش" FontSize="14.667" Foreground="#FF005D99" FontFamily="/PersianCalendarControl;component/Fonts/Fonts.zip#B Mitra" HorizontalAlignment="Center" VerticalAlignment="Center" FontWeight="Bold"/>
                <TextBlock Margin="0" TextWrapping="Wrap" Text="ي" FontSize="14.667" Foreground="#FF005D99" Grid.Column="1" FontFamily="/PersianCalendarControl;component/Fonts/Fonts.zip#B Mitra" HorizontalAlignment="Center" VerticalAlignment="Center" FontWeight="Bold"/>
                <TextBlock Margin="0" TextWrapping="Wrap" Text="د" FontSize="14.667" Foreground="#FF005D99" Grid.Column="2" d:LayoutOverrides="Width" FontFamily="/PersianCalendarControl;component/Fonts/Fonts.zip#B Mitra" HorizontalAlignment="Center" VerticalAlignment="Center" FontWeight="Bold"/>
                <TextBlock Margin="0" TextWrapping="Wrap" Text="س" FontSize="14.667" Foreground="#FF005D99" Grid.Column="3" FontFamily="/PersianCalendarControl;component/Fonts/Fonts.zip#B Mitra" HorizontalAlignment="Center" VerticalAlignment="Center" FontWeight="Bold"/>
                <TextBlock Margin="0" TextWrapping="Wrap" Text="چ" FontSize="14.667" Foreground="#FF005D99" Grid.Column="4" d:LayoutOverrides="Width" FontFamily="/PersianCalendarControl;component/Fonts/Fonts.zip#B Mitra" HorizontalAlignment="Center" VerticalAlignment="Center" FontWeight="Bold"/>
                <TextBlock Margin="0" TextWrapping="Wrap" Text="پ" FontSize="14.667" Foreground="#FF005D99" Grid.Column="5" FontFamily="/PersianCalendarControl;component/Fonts/Fonts.zip#B Mitra" HorizontalAlignment="Center" VerticalAlignment="Center" FontWeight="Bold"/>
                <TextBlock Margin="0" TextWrapping="Wrap" Text="ج" FontSize="14.667" Foreground="#FF005D99" Grid.Column="6" FontFamily="/PersianCalendarControl;component/Fonts/Fonts.zip#B Mitra" HorizontalAlignment="Center" VerticalAlignment="Center" FontWeight="Bold"/>
			</Grid>
			<Grid x:Name="YearViewGrid" Width="175" Height="155" RenderTransformOrigin="0.5,0.5" d:IsHidden="True">
				<Grid.RenderTransform>
					<CompositeTransform/>
				</Grid.RenderTransform>
				<Grid.ColumnDefinitions>
					<ColumnDefinition Width="43.75"/>
					<ColumnDefinition Width="43.75"/>
					<ColumnDefinition Width="43.75"/>
					<ColumnDefinition Width="43.75"/>					
				</Grid.ColumnDefinitions>
				<Grid.RowDefinitions>
					<RowDefinition Height="48.3"/>
					<RowDefinition Height="48.3"/>
					<RowDefinition Height="48.3"/>					
				</Grid.RowDefinitions>
                <PersianCalendarControl:CalendarItemLabelButton  Margin="1"   CurrentCalendarControlType="MonthLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton  Margin="1" Grid.Column="2" CurrentCalendarControlType="MonthLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton  Margin="1" Grid.Column="3" Grid.Row="2" CurrentCalendarControlType="MonthLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton  Margin="1" Grid.Column="2" Grid.Row="2" CurrentCalendarControlType="MonthLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton  Margin="1" Grid.Column="1" Grid.Row="2" CurrentCalendarControlType="MonthLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton  Margin="1" Grid.Row="2" CurrentCalendarControlType="MonthLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton  Margin="1" Grid.Column="3" Grid.Row="1" CurrentCalendarControlType="MonthLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton  Margin="1" Grid.Column="2" Grid.Row="1" CurrentCalendarControlType="MonthLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton  Margin="1" Grid.Column="1" Grid.Row="1" CurrentCalendarControlType="MonthLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton  Margin="1" Grid.Row="1" CurrentCalendarControlType="MonthLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton  Margin="1" Grid.Column="3" CurrentCalendarControlType="MonthLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton  Margin="1" Grid.Column="1" CurrentCalendarControlType="MonthLabel"/>
			</Grid>
            <Grid x:Name="DecadeViewGrid" Width="175" RenderTransformOrigin="0.5,0.5" d:IsHidden="True">
            	<Grid.RenderTransform>
            		<CompositeTransform/>
            	</Grid.RenderTransform>
                <Grid.ColumnDefinitions>
                	<ColumnDefinition Width="43.75"/>
                	<ColumnDefinition Width="43.75"/>
                	<ColumnDefinition Width="43.75"/>
                	<ColumnDefinition Width="43.75"/>
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                	<RowDefinition Height="48.3"/>
                	<RowDefinition Height="48.3"/>
                	<RowDefinition Height="48.3"/>
                </Grid.RowDefinitions>
                <PersianCalendarControl:CalendarItemLabelButton  Margin="1"   CurrentCalendarControlType="YearLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton  Margin="1" Grid.Column="2" CurrentCalendarControlType="YearLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton  Margin="1" Grid.Column="3" Grid.Row="2" CurrentCalendarControlType="YearLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton  Margin="1" Grid.Column="2" Grid.Row="2" CurrentCalendarControlType="YearLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton  Margin="1" Grid.Column="1" Grid.Row="2" CurrentCalendarControlType="YearLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton  Margin="1" Grid.Row="2" CurrentCalendarControlType="YearLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton  Margin="1" Grid.Column="3" Grid.Row="1" CurrentCalendarControlType="YearLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton  Margin="1" Grid.Column="2" Grid.Row="1" CurrentCalendarControlType="YearLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton  Margin="1" Grid.Column="1" Grid.Row="1" CurrentCalendarControlType="YearLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton  Margin="1" Grid.Row="1" CurrentCalendarControlType="YearLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton  Margin="1" Grid.Column="3" CurrentCalendarControlType="YearLabel"/>
                <PersianCalendarControl:CalendarItemLabelButton  Margin="1" Grid.Column="1" CurrentCalendarControlType="YearLabel"/>
            </Grid>

        </Grid>
		<PersianCalendarControl:HeaderLabel x:Name="headerLabel" RenderTransformOrigin="0.712,0.25" Height="18" VerticalAlignment="Top" Grid.Column="1" Margin="1,3,1,1" />
		<PersianCalendarControl:NavigationButton   Margin="2" x:Name="btnPrev"/>
        <PersianCalendarControl:NavigationButton   Margin="2" Grid.Column="2" x:Name="btnNext" RenderTransformOrigin="0.5,0.5">
			<PersianCalendarControl:NavigationButton.RenderTransform>
				<CompositeTransform ScaleX="-1"/>
			</PersianCalendarControl:NavigationButton.RenderTransform>
		</PersianCalendarControl:NavigationButton>
	</Grid>
</UserControl>